package com.xxl.job.admin.api.service;

import com.xxl.job.admin.api.model.XxlJobApiApp;

import java.util.List;

public interface XxlJobApiAppService {
    List<XxlJobApiApp> findAll();

    XxlJobApiApp findByAppId(String appId);

    int save(XxlJobApiApp xxlJobApiApp);
    int update(XxlJobApiApp xxlJobApiApp);

    int remove(int id);


    List<XxlJobApiApp> pageList(int offset,
                                int pagesize,
                                String appname);

    int pageListCount(int offset,
                      int pagesize,
                      String appname);
}
